package com.huli.util;

import java.util.Random;
public class CaptchaUtil {
    public static String generateCaptcha(int length) {
        Random random = new Random();
        StringBuilder captcha = new StringBuilder();
        for (int i = 0; i < length; i++) {
            captcha.append(random.nextInt(10));
        }
       return captcha.toString();
    }
}
